package transferObjects.Gae
{
    [RemoteClass(alias="dao.transferObjects.Gae.AlumnoTO")]
	
	public class AlumnoTO
	{
		private var _matricula:int;
		private var _id_curso:int;
		private var _id_gae:int;
		private var _rut_gae:int;
		private var _nombre:String;
		private var _apellido:String;
		private var _nota1:Number;
		private var _nota2:Number;
		private var _nota3:Number;
		private var _nota_socio:Number;
		private var _auto_evaluacion:Number;
		private var _nota_final:Number;
		private var _correo:String;
		private var _tipo_fono:String;
		private var _fono:int;
		private var _eliminado:Boolean;
		 
		public function AlumnoTO()
		{
			this._matricula = -1;
			this._id_curso = -1;
			this._id_gae = -1;
			this._rut_gae = -1;
			this._nombre = "";
			this._apellido = "";
			this._nota1 = 0.0;
			this._nota2 = 0.0;
			this._nota3 = 0.0;
			this._nota_socio = 0.0;
			this._auto_evaluacion = 0.0;
			this._nota_final = 0.0;
			this._correo = "";
			this._tipo_fono = "";
			this._fono = -1;
			this._eliminado = false;
		}
		
		/* **************************************************************** */
		[Bindable]
		public function get matricula():int
		{
			return this._matricula;
		}
		public function set matricula(matricula:int):void
		{
			this._matricula=matricula;
		}
		/* **************************************************************** */
		[Bindable]
		public function get id_curso():int
		{
			return this._id_curso;
		}
		public function set id_curso(id_curso:int):void
		{
			this._id_curso=id_curso;
		}
		/* **************************************************************** */
		[Bindable]
		public function get id_gae():int
		{
			return this._id_gae;
		}
		public function set id_gae(_id_gae:int):void
		{
			this._id_gae=_id_gae;
		}
		/* **************************************************************** */
		[Bindable]
		public function get rut_gae():int
		{
			return this._rut_gae;
		}
		public function set rut_gae(_rut_gae:int):void
		{
			this._rut_gae=_rut_gae;
		}
		/* **************************************************************** */
		[Bindable]
		public function get nombre():String
		{
			return this._nombre;
		}
		public function set nombre(nombre:String):void
		{
			this._nombre=nombre;
		}
		/* **************************************************************** */
		[Bindable]
		public function get apellido():String
		{
			return this._apellido;
		}
		public function set apellido(_apellido:String):void
		{
			this._apellido=_apellido;
		}
		/* **************************************************************** */
		[Bindable]
		public function get nota1():Number
		{
			return this._nota1;
		}
		public function set nota1(_nota1:Number):void
		{
			this._nota1=_nota1;
		}
		/* **************************************************************** */
		[Bindable]
		public function get nota2():Number
		{
			return this._nota2;
		}
		public function set nota2(_nota2:Number):void
		{
			this._nota2=_nota2;
		}
		/* **************************************************************** */
		[Bindable]
		public function get nota3():Number
		{
			return this._nota3;
		}
		public function set nota3(_nota3:Number):void
		{
			this._nota3=_nota3;
		}
		/* **************************************************************** */
		[Bindable]
		public function get nota_socio():Number
		{
			return this._nota_socio;
		}
		public function set nota_socio(_nota_socio:Number):void
		{
			this._nota_socio=_nota_socio;
		}
		/* **************************************************************** */
		[Bindable]
		public function get auto_evaluacion():Number
		{
			return this._auto_evaluacion;
		}
		public function set auto_evaluacion(_auto_evaluacion:Number):void
		{
			this._auto_evaluacion=_auto_evaluacion;
		}
		/* **************************************************************** */
		[Bindable]
		public function get nota_final():Number
		{
			return this._nota_final;
		}
		public function set nota_final(_nota_final:Number):void
		{
			this._nota_final=_nota_final;
		}
		/* **************************************************************** */
		[Bindable]
		public function get correo():String
		{
			return this._correo;
		}
		public function set correo(_correo:String):void
		{
			this._correo=_correo;
		}
		/* **************************************************************** */
		[Bindable]
		public function get tipo_fono():String
		{
			return this._tipo_fono;
		}
		public function set tipo_fono(_tipo_fono:String):void
		{
			this._tipo_fono=_tipo_fono;
		}
		/* **************************************************************** */
		[Bindable]
		public function get fono():int
		{
			return this._fono;
		}
		public function set fono(_fono:int):void
		{
			this._fono=_fono;
		}
		/* **************************************************************** */
		[Bindable]
		public function get eliminado():Boolean
		{
			return this._eliminado;
		}
		public function set eliminado(_eliminado:Boolean):void
		{
			this._eliminado=_eliminado;
		}
		/* **************************************************************** */
		
		/* **************************************************************** */
		/* **************************************************************** */
		/* **************************************************************** */
		public function get nombreApellido():String
		{
			return this._apellido+" "+this._nombre;
		}
		public function get estatoEvaluacion():String
		{
			if(auto_evaluacion >= 1){
				//return "EVALUADO";
				return auto_evaluacion.toString();
			}
			else{
				return "NO EVALUADO";
			}
			
			return "--";
		}
	}
}